<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Examples</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link href="" rel="stylesheet">
	<script>
		window.onload = function () {
			var str = '12dajs k43f lksd 433';
			var arr = [];
			var tmp='';
			for(var i=0;i<str.length;i++){
				if(str.charAt(i)>='0'&&str.charAt(i)<='9'){
					tmp+=str.charAt(i);
				}else{
					if(tmp){
						arr.push(tmp);
						tmp='';
					}
				}
			}
			if(tmp){
				arr.push(tmp);
				tmp='';
			}
			alert(arr);
			alert(str.match(/\d/));

			alert(str.match(/\d+/g));  //\d转意字符 表示 数字 ／g全局
			// js风格。 new RegExp('a','i')
			// perl风格  ／a/i

		}
	</script>
</head>
<body>
  <li><a href="index.html">index.html</a></li>
	<li><a href="index2.html">index2.html</a></li>
	<li><a href="index3.html">index3.html</a></li>
	<li><a href="index4.html">index4.html</a></li>
	<li><a href="index5.html">index5.html</a></li>
	<li><a href="index6.html">index6.html</a></li>
	<li><a href="index7.html">index7.html</a></li>
	<li><a href="index8.html">index8.html</a></li>
</body>
</html>